package top.codervan.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import top.codervan.yygh.model.order.OrderInfo;
import top.codervan.yygh.vo.order.OrderCountQueryVo;
import top.codervan.yygh.vo.order.OrderQueryVo;

import java.util.Map;

/**
 * @Author: van
 * @Date: 2022/2/26 12:48
 */
public interface OrderService extends IService<OrderInfo> {

    //保存订单
    Long saveOrder(String scheduleId, Long patientId);

    /**
     * 根据订单id查询订单详情
     * @param orderId
     * @return
     */
    OrderInfo getOrder(String orderId);

    /**
     * 订单列表（条件查询带分页）
     * @param pageParam
     * @param orderQueryVo
     * @return
     */
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    /**
     * 获取订单后台
     * @param id
     * @return
     */
    Object show(Long id);

    /**
     * 取消预约
     * @param orderId
     * @return
     */
    Object cancelOrder(Long orderId);

    /**
     * 就诊提醒
     */
    void patientTips();

    /**
     * 预约统计
     * @param orderCountQueryVo
     * @return
     */
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}
